<!DOCTYPE html>
<html lang="zh-CN">
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
	<title>Bootstrap 101 Template</title>

	<!-- Bootstrap -->
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	  <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	  <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	</head>
	<body>
	<script>
		//确定窗口的尺寸
		var w=window.innerWidth
		// document.documentElement.clientWidth
		// document.body.clientWidth;

		var h=window.innerHeight
		// document.documentElement.clientHeight
		// document.body.clientHeight;

		x=document.getElementById("demo");
		x.innerHTML="浏览器的内部窗口宽度：" + w + "，高度：" + h + "。"

		//确定屏幕的尺寸
		document.write("可用宽度：" + screen.availWidth);
		document.write("可用高度：" + screen.availHeight);

	</script>
  </body>
</html>
